/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.member.entity;

import javax.validation.constraints.NotNull;
import com.jeeplus.modules.member.entity.Member;
import com.jeeplus.modules.account.entity.Account;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 用户信息Entity
 * @author freedom
 * @version 2020-08-23
 */
public class Member extends DataEntity<Member> {
	
	private static final long serialVersionUID = 1L;
	private String loginName;		// 登录名
	private String password;		// 密码
	private String transpwd;		// 交易密码
	private String mobile;		// 手机号
	private String nickName;		// 昵称
	private String img;		// 头像
	private String tgcode;		// 邀请码
	private String usertype;		// 用户等级
	private String name;		// 真实姓名
	private String idcode;		// 身份证号
	private Member p;		// 上级用户
	private Account account;		// 账户
	private Integer num;         // 直推人数
	private String pwd;
	private String jypwd;
	private Double subMoney;

	private String idcodeImgFront;//身份证正面照

	private String idcodeImgBehind;//身份证反面照    所属地区

	private String confirmFlag;	//身份确认标识

	private Integer amount;   //每个分区限制购买订单数量

	private String openid;

	private String isService;   // 是否服务中心

	private String isIntegral;   // 是否积分中心

	private String regionPlace;  //所属地区

	private Double bonus; //分红数字

	private String isEffective;   //传前端是否有效用户

	private Double teamSumSub;

	private Double teamSumSubPro;

	private Integer teamNum;

	private String isCollection;   //是否可提现

	private String sub;    //认购类目
	private String subNum;  //数量
	//团队长
	private Member teamManager;
	//是否忽略
	private String isIgnore;
	
	public Member() {
		super();
	}

	public Member(String id){
		super(id);
	}

	@ExcelField(title="登录名", align=2, sort=1)
	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	
	@ExcelField(title="密码", align=2, sort=2)
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Double getSubMoney() {
		return subMoney;
	}

	public void setSubMoney(Double subMoney) {
		this.subMoney = subMoney;
	}

	@ExcelField(title="交易密码", align=2, sort=3)
	public String getTranspwd() {
		return transpwd;
	}

	public void setTranspwd(String transpwd) {
		this.transpwd = transpwd;
	}
	
	@ExcelField(title="手机号", align=2, sort=4)
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	@ExcelField(title="昵称", align=2, sort=5)
	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	
	@ExcelField(title="头像", align=2, sort=6)
	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}
	
	@ExcelField(title="邀请码", align=2, sort=7)
	public String getTgcode() {
		return tgcode;
	}

	public void setTgcode(String tgcode) {
		this.tgcode = tgcode;
	}
	
	@ExcelField(title="用户等级", dictType="usertype", align=2, sort=8)
	public String getUsertype() {
		return usertype;
	}

	public void setUsertype(String usertype) {
		this.usertype = usertype;
	}
	
	@ExcelField(title="真实姓名", align=2, sort=11)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@ExcelField(title="身份证号", align=2, sort=12)
	public String getIdcode() {
		return idcode;
	}

	public void setIdcode(String idcode) {
		this.idcode = idcode;
	}
	

	
	@ExcelField(title="上级用户", fieldType=Member.class, value="p.loginName", align=2, sort=15)
	public Member getP() {
		return p;
	}

	public void setP(Member p) {
		this.p = p;
	}
	
	@ExcelField(title="账户", fieldType=Account.class, value="account.team", align=2, sort=16)
	public Account getAccount() {
		return account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getJypwd() {
		return jypwd;
	}

	public void setJypwd(String jypwd) {
		this.jypwd = jypwd;
	}



	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}


	public String getIdcodeImgFront() {
		return idcodeImgFront;
	}

	public void setIdcodeImgFront(String idcodeImgFront) {
		this.idcodeImgFront = idcodeImgFront;
	}

	public String getIdcodeImgBehind() {
		return idcodeImgBehind;
	}

	public void setIdcodeImgBehind(String idcodeImgBehind) {
		this.idcodeImgBehind = idcodeImgBehind;
	}

	public String getConfirmFlag() {
		return confirmFlag;
	}

	public void setConfirmFlag(String confirmFlag) {
		this.confirmFlag = confirmFlag;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getIsService() {
		return isService;
	}

	public void setIsService(String isService) {
		this.isService = isService;
	}

	public String getIsIntegral() {
		return isIntegral;
	}

	public void setIsIntegral(String isIntegral) {
		this.isIntegral = isIntegral;
	}

	public String getRegionPlace() {
		return regionPlace;
	}

	public void setRegionPlace(String regionPlace) {
		this.regionPlace = regionPlace;
	}

	public Double getBonus() {
		return bonus;
	}

	public void setBonus(Double bonus) {
		this.bonus = bonus;
	}

	public String getIsEffective() {
		return isEffective;
	}

	public void setIsEffective(String isEffective) {
		this.isEffective = isEffective;
	}

	public Double getTeamSumSub() {
		return teamSumSub;
	}

	public void setTeamSumSub(Double teamSumSub) {
		this.teamSumSub = teamSumSub;
	}

	public Double getTeamSumSubPro() {
		return teamSumSubPro;
	}

	public void setTeamSumSubPro(Double teamSumSubPro) {
		this.teamSumSubPro = teamSumSubPro;
	}

	public Integer getTeamNum() {
		return teamNum;
	}

	public void setTeamNum(Integer teamNum) {
		this.teamNum = teamNum;
	}

	public String getIsCollection() {
		return isCollection;
	}

	public void setIsCollection(String isCollection) {
		this.isCollection = isCollection;
	}

	public String getSub() {
		return sub;
	}

	public void setSub(String sub) {
		this.sub = sub;
	}

	public String getSubNum() {
		return subNum;
	}

	public void setSubNum(String subNum) {
		this.subNum = subNum;
	}

	public Member getTeamManager() {
		return teamManager;
	}

	public void setTeamManager(Member teamManager) {
		this.teamManager = teamManager;
	}

	public String getIsIgnore() {
		return isIgnore;
	}

	public void setIsIgnore(String isIgnore) {
		this.isIgnore = isIgnore;
	}
}